Provide a fast path returning NULL when the limit is set to 0.
authorEmmanuele Bassi <ebassi@gnome.org>
Thu, 16 Nov 2006 09:57:45 +0000 (09:57 +0000)
committerEmmanuele Bassi <ebassi@src.gnome.org>
Thu, 16 Nov 2006 09:57:45 +0000 (09:57 +0000)
commitcbf6d898fb44589a12d8df49a005291259311d45
tree5073d96afa560d41e62d5af253a4b6aa39679f79
parentb99bea24892a501010d403dd696b7ad6c52db333
Provide a fast path returning NULL when the limit is set to 0.

2006-11-16  Emmanuele Bassi  <ebassi@gnome.org>

* gtk/gtkrecentmanager.c: Provide a fast path returning
NULL when the limit is set to 0.

* gtk/gtkrecentchooserdefault.c:
* gtk/gtkrecentchoosermenu.c: Add the same fast path
inside the RecentChooser implementation; add a check
in the list clamping code. (#373466 and duplicates)
ChangeLog
gtk/gtkrecentchooserdefault.c
gtk/gtkrecentchoosermenu.c
gtk/gtkrecentmanager.c